module.exports = function(req,res,next){
    if(req.session.username){
        next();
    }else{
        // res.redirect('/login');
        res.json({
            msg:"登录过期",
            code:202
        })
    }
}